From: Keir Fraser Date: Tue, 16 Jun 2009 12:39:00 +0000 (+0100) Subject: x86, hvm: set vcpu->is_initialised after restore/migration X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13761 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2d61801bce4430a2dd91c544e8ca7b1fd117b74b;p=xen.git x86, hvm: set vcpu->is_initialised after restore/migration After restore/migration, the xenctx command for auxiliary vcpus fails with a message "xc_vcpu_getcontext: No data available". Signed-off-by: Kouya Shimura --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 561e30d15b..fcf8d43ff9 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -662,8 +662,9 @@ static int hvm_load_cpu_ctxt(struct domain *d, hvm_domain_context_t *h) v->fpu_initialised = 1; /* Auxiliary processors should be woken immediately. */ - if ( test_and_clear_bit(_VPF_down, &v->pause_flags) ) - vcpu_wake(v); + v->is_initialised = 1; + clear_bit(_VPF_down, &v->pause_flags); + vcpu_wake(v); return 0; }